package msg.udp;


public class UDPServer {

	private UDPSocket udp;
	private boolean flag;


	public UDPServer(String ip, int port) {
		this.udp = new UDPSocket(ip, port);
		this.flag = this.udp.addReceiveSocket(port);
	}


	public String receive() {
		return this.udp.receive();
	}


	public boolean getFlag() {
		return flag;
	}
}
